
const data_config = require("./data_config");


module.exports = {
  nav_name: '会员管理', //生成导航菜单
  module_name: 'member_m',  //生成路径，必须与文件名相同
  api: `{
    user_verify_page: commonPath + "/admin/userCard/page", //审核认证分页
    pass_changeState: commonPath + '/admin/userCard/audit', //更改审核状态
    user_verify_detail: commonPath + '/admin/userCard/get', //详情,
    add: commonPath + '', //添加

    user_page:  commonPath + '/admin/userInfo/page', //会员列表p
    user_detail: commonPath + "/admin/userInfo/detail", //用户信息详情g
    user_changeState: cPath + "/admin/userInfo/editState", //启用禁用
    user_detal_by_tel: commonPath + '/admin/userInfo/get', //根据手机号查询用户信息g

    user_money_page: cPath + "/admin/userBurse/page", //会员资产列表

    user_addr: cPath + "/admin/userInfo/logistics", //单个用户地址列表
    user_bank_card: cPath + "/admin/userInfo/bankList", //单个用户银行卡列表

    set_node: commonPath + "/admin/userInfo/setNode", //设置节点g
    cancel_node: commonPath + "/admin/userInfo/cancelNode", //取消节点g
    zhi_tui_team_user: commonPath + "/admin/userInfo/searchTeamList", //查询直推团队用户p
    
  }`, //接口



  //会员管理列表
  table1: {
    // isGenerate: "false", //false表示不生成页面
    table_name: "user_table",  //表页面名
    nav_name: "会员列表",  //导航名
    tipsText: "会员管理 >> 会员列表", //顶部文字
    // tableReqMethod: "get",  //分页请求配置成get方式, 默认为post
    pageApi: "API.member_m.user_page",  //请求api
    // extraPageRequestParams: `
    //   courseId: this.$route.query.id,  //请求
    // `, //已有page和pageSize
    //获取列表页面
    tableData: [
      //普通
      { title: '序号', name: 'index', type: "normal" },
      { title: '昵称', name: 'nickName', type: "normal" },
      {
        title: '头像',
        name: 'headUrl',
        type: "img",
        heightVal: "60",
        widthVal: "100",
      },
      { title: '手机号', name: 'phone', type: "normal" },
      { title: '会员级别', name: 'grade', type: "normal" },
      { title: '创客等级', name: 'guestName', type: "normal" },
      { title: '推荐人id', name: 'mySuperior', type: "normal" },
      { title: '推荐人电话', name: 'recommendPhone', type: "normal" },
      {
        title: '状态',
        name: 'state',
        type: "opts",
        showName: "stateShow",
        showObj: `{
          "0": "停用  ",
          "1": "使用",
        }`
      },
      { title: '注册时间', name: 'createDate', type: "normal" },

    ],
    tableOpt: [
      {
        type: "view",
        text: "查看",
        request: false,
        jump: "/member_m_user_detail"
      },
      {
        type: "changeState",
        text: "启用",
        request: true,
        url: "API.member_m.user_changeState",
        requestType: 'post',
        params: `{id,  state: 1 }`, //必须为文本 状态 1上架 2下架
        methodNameTag: 'Open', //方法衔接拓展名 changeState Black
        showCondition: `scope.row.state == '0'`,  //展示条件，没有就不传或置为空
      },
      {
        type: "changeState",
        text: "封号",
        request: true,
        url: "API.member_m.user_changeState",
        requestType: 'post',
        params: `{id,  state: 0 }`, //必须为文本
        methodNameTag: 'Close', //方法衔接拓展名 changeState Black
        showCondition: `scope.row.state == '1'`,  //展示条件，没有就不传或置为空
      },
      // {
      //   type: "view",
      //   text: "团队",
      //   request: false,
      //   jump: "/member_m_user_detail"
      // },
      // {
      //   type: "view",
      //   text: "财务",
      //   request: false,
      //   jump: "/member_m_user_detail"
      // },
    
    ],
    search: {
      contentArr: {
        input2: { labelName: '手机号', inputName: 'phone' },
        select1: {
          labelName: '状态',
          inputName: 'state',  //输入绑定的变量
          selectOptsName: "stateOpts",
          selectOptsArr: `[
            { value: "0", label: "待审核" },
            { value: "1", label: "通过" },
            { value: "2", label: "不通过" },
            { value: "", label: "请选择" },
          ],
          `,
        },
        select1_1: {
          labelName: '实名认证',
          inputName: 'cardType',  //输入绑定的变量
          selectOptsName: "cardTypeOpts",
          selectOptsArr: `[
            { value: "0", label: "否" },
            { value: "1", label: "是" },
            { value: "2", label: "正在审核" },
            { value: "", label: "请选择" },
          ],
          `,
        },
        select1_2: {
          labelName: '等级',
          inputName: 'readeIntegral',  //输入绑定的变量
          selectOptsName: "readeIntegralOpts",
          selectOptsArr: `[
            { value: "0", label: "注册" },
            { value: "1", label: "普" },
            { value: "2", label: "铁粉" },
            { value: "3", label: "超粉" },
            { value: "4", label: "v1" },
            { value: "5", label: "v2" },
            { value: "6", label: "v3" },
            { value: "7", label: "v4" },
            { value: "8", label: "v5" },
            { value: "9", label: "v6" },
            { value: "10", label: "v7" },
            { value: "", label: "请选择" },
          ],
          `,
        },
        date1: {
          labelName: '注册时间',
          inputName: 'temp',
          dateConfig: {
            startDateName: 'startDate',
            endDateName: 'endDate',
            dateChangeMethodsName: 'handleRegisterDateChange'
          }
        },
      },
      //查找按钮的文字
      searchBtn: {
        text: "查询", //链接与table请求接口相同，不做另外配置
      },
      //添加按钮
      // addBtn: {
      //   //搜索栏具有添加功能按钮时，设置此字段
      //   type: "add",
      //   text: "新增等级",
      //   request: false,
      //   jump: "/member_manager_add_page", //添加的跳转按钮
      // }
    },
  },


  //用户信息详情
  detail_page1: {
    isGenerate: "false", //false表示不生成页面
    detail_page_name: "user_detail",
    detail_api: "API.member_m.user_detail",
    request_params: `{
        id: id,
      }`,
    tipsText: "会员管理 >> 用户信息详情",
    formData: {
      // titleText: "请填写管理员相关信息",
      item1_1: {
        labelName: "用户昵称",
        inputName: 'nickName',
        type: "normal",
        frontTips: "", //后面的说明
        behindTips: "", //前面的说明
      },
      item1_2: {
        labelName: "认证所在地",
        inputName: 'addr',
        type: "normal",
        frontTips: "", //后面的说明
        behindTips: "", //前面的说明
      },
      item1_3: {
        labelName: "域",
        inputName: 'domain',
        type: "normal",
        frontTips: "", //后面的说明
        behindTips: "", //前面的说明
      },
      item1_4: {
        labelName: "会员等级名称",
        inputName: 'grade',
        type: "normal",
        frontTips: "", //后面的说明
        behindTips: "", //前面的说明
      },
      item1_5: {
        labelName: "创客名称",
        inputName: 'guestName',
        type: "normal",
        frontTips: "", //后面的说明
        behindTips: "", //前面的说明
      },
       item2_1: {
        labelName: '头像图片地址',
        inputName: 'headUrl',
        type: "img",
      },

      item1_6: {
        labelName: "邀请id",
        inputName: 'myInviterId',
        type: "normal",
        frontTips: "", //后面的说明
        behindTips: "", //前面的说明
      },
      
      item1_7: {
        labelName: "我的推荐码",
        inputName: 'myRecommendCode',
        type: "normal",
        frontTips: "", //后面的说明
        behindTips: "", //前面的说明
      },
      
      item1_8: {
        labelName: "我的推荐码",
        inputName: 'myRecommendCode',
        type: "normal",
        frontTips: "", //后面的说明
        behindTips: "", //前面的说明
      },

      item1_9: {
        labelName: "直推人id",
        inputName: 'mySuperior',
        type: "normal",
        frontTips: "", //后面的说明
        behindTips: "", //前面的说明
      },
      item1_10: {
        labelName: "手机号",
        inputName: 'phone',
        type: "normal",
        frontTips: "", //后面的说明
        behindTips: "", //前面的说明
      },
      
      item2_2: {
        labelName: '分享二维码',
        inputName: 'qrcode',
        type: "img",
      },
      item1_11: {
        labelName: "推荐人电话",
        inputName: 'recommendPhone',
        type: "normal",
        frontTips: "", //后面的说明
        behindTips: "", //前面的说明
      },
      item1_12: {
        labelName: "更新时间",
        inputName: 'updateDate',
        type: "normal",
        frontTips: "", //后面的说明
        behindTips: "", //前面的说明
      },
      //选项展示
      item2_3: {
        labelName: '使用状态',
        inputName: 'state',
        type: "opts",
        optShowName: "stateShow",
        optShowStr: `{
          0: "停用",
          1: "使用",
        }`,
        frontTips: "", //后面的说明
        behindTips: "", //前面的说明
      },
       
    },
  },

  /* 会员资产列表 */
  table121: {
     isGenerate: "false", //false表示不生成页面
     table_name: "user_money_table",  //表页面名
     nav_name: "会员资产列表",  //导航名
     tipsText: "会员管理 >> 会员资产列表", //顶部文字
     // tableReqMethod: "get",  //分页请求配置成get方式, 默认为post
     pageApi: "API.member_m.user_money_page",  //请求api
     // extraPageRequestParams: `
     //   courseId: this.$route.query.id,  //请求
     // `, //已有page和pageSize
     //获取列表页面
     tableData: [

       //普通
       { title: '序号', name: 'index', type: "normal" },
       { title: '手机', name: 'phone', type: "normal" },
       { title: '用户id', name: 'userId', type: "normal" },
       { title: '身份证', name: 'cardNumber', type: "normal" },
       { title: '余额', name: 'balance', type: "normal" },
       { title: '贡献值', name: 'contributionNumber', type: "normal" },

       { title: '提现总额', name: 'extractNum', type: "normal" },
       { title: '荣誉值', name: 'honorNumber', type: "normal" },
       { title: '互转总额', name: 'huzhuangNum', type: "normal" },
       { title: '提货权', name: 'kimsVolume', type: "normal" },
       { title: '奖章', name: 'medal', type: "normal" },
       { title: '拼呗', name: 'pinBei', type: "normal" },
       { title: '拼豆', name: 'pinDou', type: "normal" },
       { title: '普消总消费', name: 'pinBei', type: "normal" },
       { title: '总充值', name: 'rechargeNum', type: "normal" },
       { title: '易物总消费', name: 'yiwuNum', type: "normal" },
       
     ],
     tableOpt: [
      //  {
      //    type: "view",
      //    text: "查看",
      //    request: false,
      //    jump: "/member_m_user_detail"
      //  },
      //  {
      //    type: "changeState",
      //    text: "启用",
      //    request: true,
      //    url: "API.member_m.user_changeState",
      //    requestType: 'post',
      //    params: `{id,  state: 1 }`, //必须为文本 状态 1上架 2下架
      //    methodNameTag: 'Open', //方法衔接拓展名 changeState Black
      //    showCondition: `scope.row.state == '0'`,  //展示条件，没有就不传或置为空
      //  },
      //  {
      //    type: "changeState",
      //    text: "封号",
      //    request: true,
      //    url: "API.member_m.user_changeState",
      //    requestType: 'post',
      //    params: `{id,  state: 0 }`, //必须为文本
      //    methodNameTag: 'Close', //方法衔接拓展名 changeState Black
      //    showCondition: `scope.row.state == '1'`,  //展示条件，没有就不传或置为空
      //  },
     
     ],
     search: {
       contentArr: {
         input1: { labelName: '手机号', inputName: 'phone' },
         input2: { labelName: '用户id', inputName: 'userId' },
       
       },
       //查找按钮的文字
       searchBtn: {
         text: "查询", //链接与table请求接口相同，不做另外配置
       },
       //添加按钮
       // addBtn: {
       //   //搜索栏具有添加功能按钮时，设置此字段
       //   type: "add",
       //   text: "新增等级",
       //   request: false,
       //   jump: "/member_manager_add_page", //添加的跳转按钮
       // }
     },
  },


  //实名审核列表
  table2: {
    isGenerate: "false", //false表示不生成页面
    table_name: "user_verify_table",  //表页面名
    nav_name: "用户实名审核",  //导航名
    tipsText: "会员管理 >> 用户实名审核", //顶部文字
    // tableReqMethod: "get",  //分页请求配置成get方式, 默认为post
    pageApi: "API.member_m.user_verify_page",  //请求api
    // extraPageRequestParams: `
    //   courseId: this.$route.query.id,  //请求
    // `, //已有page和pageSize
    //获取列表页面
    tableData: [
      //普通
      { title: '序号', name: 'index', type: "normal" },
      { title: '昵称', name: 'nickName', type: "normal" },
      { title: '电话', name: 'tel', type: "normal" },
      {
        title: '身份证正面',
        name: 'positive',
        type: "img",
        heightVal: "60",
        widthVal: "100",
      },
      {
        title: '身份证反面',
        name: 'the',
        type: "img",
        heightVal: "60",
        widthVal: "100",
      },
      {
        title: '地区', //省市区
        name: 'state',
        type: "innerCode",
        innerCode: `{{scope.row.addressDetailed }}`,
      },
      {
        title: '状态',
        name: 'state',
        type: "opts",
        showName: "stateShow",
        showObj: `{
          "0": "待审核",
          "1": "通过",
          "2": "未通过",
        }`
      },
    ],
    tableOpt: [
      {
        type: "view",
        text: "查看",
        request: false,
        jump: "/member_m_user_verify_detail"
      },
      {
        type: "changeState",
        text: "通过",
        request: true,
        url: "API.member_m.pass_changeState",
        requestType: 'post',
        params: `{id,  state: 1 }`, //必须为文本 状态 1上架 2下架
        methodNameTag: 'Open', //方法衔接拓展名 changeState Black
        showCondition: `scope.row.state == '0'`,  //展示条件，没有就不传或置为空
      },
      {
        type: "changeState",
        text: "未通过",
        request: true,
        url: "API.member_m.pass_changeState",
        requestType: 'post',
        params: `{id,  state: 2 }`, //必须为文本
        methodNameTag: 'Close', //方法衔接拓展名 changeState Black
        showCondition: `scope.row.state == '0'`,  //展示条件，没有就不传或置为空
      },
    ],
    search: {
      contentArr: {
        input2: { labelName: '手机号', inputName: 'tel' },
        select1: {
          labelName: '状态',
          inputName: 'state',  //输入绑定的变量
          selectOptsName: "stateOpts",
          selectOptsArr: `[
            { value: "0", label: "待审核" },
            { value: "1", label: "通过" },
            { value: "2", label: "不通过" },
            { value: "", label: "请选择" },
          ],
          `,
        },
      },
      //查找按钮的文字
      searchBtn: {
        text: "查询", //链接与table请求接口相同，不做另外配置
      },
      //添加按钮
      // addBtn: {
      //   //搜索栏具有添加功能按钮时，设置此字段
      //   type: "add",
      //   text: "新增等级",
      //   request: false,
      //   jump: "/member_manager_add_page", //添加的跳转按钮
      // }
    },
  },


  //实名审核列表详情
  detail_page2: {
    // isGenerate: "false", //false表示不生成页面
    detail_page_name: "user_verify_detail",
    detail_api: "API.member_m.user_verify_detail",
    request_params: `{
        userId: id,
      }`,
    tipsText: "会员管理 >> 用户审核详情",
    formData: {
      // titleText: "请填写管理员相关信息",
      item1_1: {
        labelName: "用户昵称",
        inputName: 'nickName',
        type: "normal",
        frontTips: "", //后面的说明
        behindTips: "", //前面的说明
      },
      item1_2: {
        labelName: "手机号码",
        inputName: 'tel',
        type: "normal",
        frontTips: "", //后面的说明
        behindTips: "", //前面的说明
      },
      // item1_3: {
      //   labelName: "真实姓名",
      //   inputName: 'remark',
      //   type: "normal",
      //   frontTips: "", //后面的说明
      //   behindTips: "", //前面的说明
      // },
      item1_4: {
        labelName: "身份证号码",
        inputName: 'cardNumber',
        type: "normal",
        frontTips: "", //后面的说明
        behindTips: "", //前面的说明
      },
      item1_5: {
        labelName: "地址",
        inputName: 'addr',
        type: "normal",
        frontTips: "", //后面的说明
        behindTips: "", //前面的说明
      },

      item1_6: {
        labelName: "详细地址",
        inputName: 'addressDetailed',
        type: "normal",
        frontTips: "", //后面的说明
        behindTips: "", //前面的说明
      },

      item2_1: {
        labelName: '证件照正',
        inputName: 'positive',
        type: "img",
      },
      item2_2: {
        labelName: '证件照反',
        inputName: 'the',
        type: "img",
      },
      item3_1: {
        labelName: "申请时间",
        inputName: 'createDate',
        type: "normal",
        frontTips: "", //后面的说明
        behindTips: "", //前面的说明
      },

    },
  },


}

